home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / src / src.lha / Precognition / ToolWindow.h < prev   
Encoding:
C/C++ Source or Header  |  1993-12-17  |  1.4 KB  |  54 lines

  1. #ifndef TOOLWINDOW_H
  2. #define TOOLWINDOW_H
  3.  
  4. #include "Precognition3D.h"
  5. #include "pcgWindow.h"
  6. #include "pcgWindowClass.h"
  7.  
  8. #include "GelsSystem.h"
  9. #include "ImageBob.h"
  10.  
  11.  
  12. #include "TitleBox.h"
  13. #include "OutlineBox.h"
  14. #include "ToolButton.h"
  15. #include "ClippedImageRastPort.h"
  16.  
  17. typedef struct ToolWindow
  18. {
  19.    pcgWindow            pw;
  20.  
  21.    GelsSystem              gelssystem;
  22.    ImageBob                ibob;
  23.    RastPort               *GelsRPort;
  24.    struct ViewPort        *GelsVPort;
  25.  
  26.    ToolButton             *selected_button;
  27.    GraphicObject          *archetype;
  28.  
  29.    short                   y;
  30.    short                   state;
  31.    ULONG                   IDCMPbuf;
  32.    pcg_3DPens              pens;
  33.  
  34.    void                   *builder; /* pointer to the builder window. */
  35.    Point                   offset;
  36.    Point                   dragback; /* Where image-bob returns to */
  37. } ToolWindow;
  38.       /* A tool a window is type of a pcgWindow. */
  39.  
  40. void ToolWindow_Init( ToolWindow     *self,
  41.                       USHORT          leftedge,
  42.                       USHORT          topedge,
  43.                       Screen         *screen,
  44.                       struct MsgPort *SharedPort,
  45.                       pcg_3DPens      pens,
  46.                       char           *title );
  47.  
  48.  
  49. void ToolWindow_AddArchetype( ToolWindow     *self,
  50.                               GraphicObject  *archetype );
  51.  
  52.  
  53. #endif
  54.